from masoniteorm.relationships import belongs_to

from application.config import appSettings
from ..base import BaseModel


class VerifyTemplate(BaseModel):
    __table__ = appSettings.db_prefix + 'verify_templates'

    __casts__ = {
        'small_template': 'json',
        'ewm_template': 'json',
    }

    @belongs_to('code', 'code')
    def company(self):
        from .Company import Company
        return Company


__all__ = ['VerifyTemplate']
